
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
        <meta name="apple-mobile-web-app-capable" content="yes" />
        <meta name="apple-mobile-web-app-status-bar-style" content="black" />
        {$page_seo}
        <link type="text/css" rel="stylesheet" href="{res file=css/common.css}">
            <link type="text/css" rel="stylesheet" href="{res file=css/flexslider.css}">
                <link href="{res file=css/flexslider.css}" rel="stylesheet" type="text/css" />
                <script type="text/javascript" src="{res file=js/jquery-1.8.0.min.js}" charset="utf-8"></script>
                <script type="text/javascript" src="{res file=js/jquery.flexslider.js}" charset="utf-8"></script>
                <script type="text/javascript" src="{res file=js/sub_menu.js}" charset="utf-8"></script>
                <script type="text/javascript" src="{res file=js/touchslider.dev.js}"></script>
                <script type="text/javascript" src="{lib file=mall.js}" charset="utf-8"></script>
                <script>
                    $(window).load(function() {
                        $('.flexslider').flexslider({
                            animation: "slide"
                        });
                    });
                </script>
                </head>
                <!--ypy-->
                <body>
                    {include file=header.html}

                    <!---轮播------>
                    <section class="slider">
                        <div class="flexslider">
                            <ul class="slides">
                                <!--{foreach from=$goods_images item=goods_iamge}-->
                                <li>
                                    <!-- {if $goods_iamge.image_link}-->
                                    <a href="{$goods_iamge.image_link}"> <img height="200px"  src="{$site_url}/{$goods_iamge.image_url}"/></a>
                                    <!--{else}-->
                                    <img height="200px"  src="{$site_url}/{$goods_iamge.image_url}"/>
                                    <!--{/if}-->

                                </li>
                                <!--{/foreach}-->

                            </ul>
                        </div>
                    </section>

                    <!-----分类--------->
                    <div class="sort">
                        <ul>
                            <!--{if $store.radio_new eq '1'}-->
                            <a href="index.php?app=store&act=search&id={$store.store_id}&order=add_time">
                                <li>
                                    <img src="<!--{if $store.store_new_images}-->{$store.store_new_images} <!--{else}-->{res file=images/sort_icon1.png}<!--{/if}--> " />
                                    <span>最新商品</span>
                                </li>
                            </a>
                            <!--{/if}-->
                            <!--{if $store.radio_recommend eq '1'}-->
                            <a href="index.php?app=store&act=search&id={$store.store_id}&recommended=1">
                                <li>
                                    <img src="<!--{if $store.store_recommend_images}-->{$store.store_recommend_images} <!--{else}-->{res file=images/sort_icon2.png}<!--{/if}-->" />
                                    <span>推荐商品</span>
                                </li>
                            </a>
                            <!--{/if}-->
                            <!--{if $store.radio_hot eq '1'}-->
                            <a href="index.php?app=store&act=search&id={$store.store_id}&order=views">
                                <li>
                                    <img src="<!--{if $store.store_hot_images}-->{$store.store_hot_images} <!--{else}-->{res file=images/sort_icon3.png}<!--{/if}-->" />
                                    <span>热门商品</span>
                                </li>
                            </a>
                            <!--{/if}-->
                            <!--{foreach from=$store.store_gcates item=gcategory}-->
                        <a href="{url app=store&id=$store.store_id&act=search&cate_id=$gcategory.id}">
                        <li>
                        <div class="imgbox"><img src="{res file=images/sr1.png} "></div>
                        <span>{$gcategory.value|escape}</span></li>
                        </a>
                        <!--{/foreach}-->

                        </ul>
                    </div>



                    <!---------------团购-------------------->
                    <!--{if $groupbuy_list}-->
                    <h2 class="tuan-title">最新团购</h2>
                    <div class="tuan_box swipe">
                        <ul class="tuan_list"  id="slider1">
                            <!-- {foreach from=$groupbuy_list item=group} -->

                            <li>
                                <a href="{url app=groupbuy&id=$group.group_id}">
                                    <div class="con">
                                        <div class="tuan_imgbox">
                                            <img src="{$group.default_image}">
                                                <p>{$group.group_name|escape}</p>
                                        </div>
                                        <span class="tuan_price">团购价：<strong>{$group.group_price|price}</strong></span>
                                        <!--{if $group.state eq 1}-->
                                        <span class="s_time"><img src="{res file=images/time.png}">剩余：{$group.lefttime}</span>
                                        <!--{elseif $group.state eq 2}-->
                                        <span class="s_time">活动已结束</span>
                                        <!--{elseif $group.state eq 3}-->
                                        <span class="s_time">活动已完成</span>
                                        <!--{elseif $group.state eq 4}-->
                                        <span class="s_time">活动已取消</span>
                                        <!--{/if}-->
                                    </div>
                                </a>
                            </li>
                            <!-- {/foreach} -->
                        </ul>
                        <span onClick="t1.prev();" class="prenext pre"></span>
                        <span onClick="t1.next();" class="prenext next"></span>
                    </div>
                    <!--{/if}-->

                    <!-----列表--------->
                    <!--{if $recommended_goods}-->
                    <div class="lists">
                        <h2>橱窗推荐<a href="index.php?app=store&act=search&id={$store.store_id}&recommended=1">more+</a></h2>
                        <ul>
                            <!--{foreach from=$recommended_goods item=rgoods}-->
                            <a href="{url app=goods&id=$rgoods.goods_id}">
                                <li>
                                    <img src="{$site_url}/{$rgoods.default_image}" />
                                    <p>{$rgoods.goods_name|escape}</p>
                                    <span>{$rgoods.price|price}</span>
                                </li>
                            </a>
                            <!-- {/foreach} -->

                        </ul>
                    </div>
                    <!--{/if}-->

                    <!--{if $new_goods}-->
                    <div class="lists">
                        <h2>新品上市<a href="index.php?app=store&act=search&id={$store.store_id}&order=add_time">more+</a></h2>
                        <ul>
                            <!--{foreach from=$new_goods item=ngoods}-->
                            <a href="{url app=goods&id=$ngoods.goods_id}">
                                <li>
                                    <img src="{$site_url}/{$ngoods.default_image}" />
                                    <p>{$ngoods.goods_name|escape}</p>
                                    <span>{$ngoods.price|price}</span>
                                </li>
                            </a>
                            <!--{/foreach}-->

                        </ul>
                    </div>
                    <!--{/if}-->
                    <!------底部-------->
                    {include file=footer.html}
                    <script>
              var t1 = new TouchSlider('slider1', {'auto': true, speed: 600, timeout: 6000})
                    </script>
                </body>
                </html>
